<template>
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center myPay_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub myPay_fd0_0'>
                    <view class='flex flex-wrap align-center myPay_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  myPay_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='myPay_fd0_0_c1_c0'>我的钱包</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end myPay_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
			
            <view class="flex flex-direction align-stretch benben-flex-layout myPay_flex_1" @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/qbgl/bindAccount/bindAccount`">
                <text class='myPay_fd1_0'>绑定账户</text>
            </view>

            <!---flex布局flex布局结束-->
            <!---flex布局flex布局开始-->
            <view class="flex flex-wrap align-center justify-center benben-flex-layout myPay_flex_2">
                <view class='flex flex-direction flex-wrap align-center myPay_fd2_0'>
                    <view class='myPay_fd2_0_c0'>
                        <text class='myPay_fd2_0_c0_c0'>￥</text>
                        <text>{{detail.user_money}}</text>
                    </view>
                    <text class='myPay_fd2_0_c1'>当前余额(可提现）</text>
                </view>
                <view class='flex flex-direction flex-wrap align-center myPay_fd2_1'>
                    <view class='myPay_fd2_0_c0'>
                        <text class='myPay_fd2_0_c0_c0'>￥</text>
                        <text>{{detail.freeze_money}}</text>
                    </view>
                    <view class='myPay_fd2_1_c1'>
                        <text class='myPay_fd2_1_c1_c0'>待结算金额</text>
                        <text class='fu-iconfont2  myPay_fd2_1_c1_c1' @tap.stop="popupShow1718963432279=true">&#xe600;</text>
                    </view>
                </view>
            </view>

            <!---flex布局flex布局结束-->
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction align-stretch benben-flex-layout myPay_flex_3">
                <view class='flex flex-direction align-center justify-center myPay_fd3_0'>
                    <view class='flex flex-wrap align-center justify-around myPay_fd3_0_c0'>
                        <view class='flex flex-direction flex-wrap align-center'>
                            <text class='myPay_fd3_0_c0_c0_c0'>本月收入</text>
                            <text class='myPay_fd3_0_c0_c0_c1'>{{detail.month_money}}</text>
                        </view>

                        <view class='flex  myPay_fd3_0_c0_c1'></view>

                        <view class='flex flex-wrap align-center'>
                            <view class='flex flex-direction flex-wrap align-center'>
                                <text class='myPay_fd3_0_c0_c0_c0'>累计收入</text>
                                <text class='myPay_fd3_0_c0_c0_c1'>{{detail.all_income}}</text>
                            </view>
                        </view>
                    </view>
                    <view class='flex flex-wrap align-center self-center justify-center myPay_fd3_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo" 
					:data-url="`/pages/qbgl/Withdrawals/Withdrawals`">
                        <image class='myPay_fd3_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"86.png"'></image>
                        <text class='myPay_fd3_0_c1_c1'>提现</text>
                    </view>
                </view>
            </view>

            <!---flex布局flex布局结束-->
            <!---flex布局flex布局开始-->
            <view class="flex flex-direction align-stretch benben-flex-layout myPay_flex_4">
                <view class='flex flex-wrap align-center'>
                    <view class='flex flex-wrap align-center myPay_fd4_0_c0'>
                    </view>
                    <text class='myPay_fd4_0_c1'>近30天记录</text>
                    <text class='myPay_fd4_0_c2' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/qbgl/balance/balance`">查看全部</text>
                </view>
				
                <template v-for='(item,key0) in list'>
                    <view class='flex flex-direction align-stretch myPay_fd4_1' @tap.stop="chakan(item)">
                        <view class='flex flex-wrap align-center'>
                            <view class='flex flex-direction align-stretch flex-sub myPay_fd4_1_c0_c0'>
                                <text class='myPay_fd4_1_c0_c0_c0'>{{item.remark}}</text>
                            </view>
                            <!-- <text class='myPay_fd4_1_c0_c1' v-if="item.money_type == 1">+</text> -->
                            <text class='myPay_fd4_1_c0_c1' v-if="item.money_type == 1">{{item.change_money}}</text>
							<text class='myPay_fd4_1_c0_c2_1' v-if="item.money_type == 2">{{item.change_money}}</text>
                        </view>
                        <view class='flex flex-wrap align-center myPay_fd4_1_c1' v-if=" item.change_type=='5' || item.change_type=='6'">
                            <text>订单编号：</text>
                            <text>{{item.order_sn}}</text>
                        </view>
                        <view class='flex flex-wrap align-center myPay_fd4_1_c2'>
                            <text class='myPay_fd4_1_c2_c0'>{{item.create_time}}</text>
                            <view class='myPay_fd4_1_c2_c1'>
                                <text class='myPay_fd4_1_c2_c1_c0' v-if="item.check_status=='1'">审核中</text>
                                <text class='myPay_fd4_1_c2_c1_c0' v-if="item.check_status=='3'">审核驳回</text>
                                <text class='myPay_fd4_1_c2_c1_c0' v-if="item.check_status=='2'">已到账</text>
                                <text class='myPay_fd4_1_c2_c1_c1' v-if="item.change_type == 2 || item.change_type == 5 || item.change_type == 6">详情 ></text>
                            </view>
                        </view>
                    </view>
                </template>
                <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
            </view>

            <!---flex布局flex布局结束-->
            <benben-popup v-model="popupShow1718963432279" :mask="true" :mask-close-able="true" mode='center'>
                <!---flex布局flex布局开始-->
                <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myPay_flex_5">
                    <view class='flex flex-direction flex-wrap align-stretch myPay_fd5_0'>
                        <text class='myPay_fd5_0_c0'>{{dataDetails.type}}</text>

                        <scroll-view class='myPay_fd5_0_c1' :scroll-y='true'>
                            <view class='flex flex-direction align-center benben-scroll flex'>
                                <jyf-parser class='myPay_fd5_0_c1_c0' :html="dataDetails.content | richTextFormat">
                                </jyf-parser>
                            </view>
                        </scroll-view>

                    </view>
                    <view class='flex flex-wrap align-center justify-center myPay_fd5_1'>
                        <image class='myPay_fd5_1_c0' mode="aspectFit" :src='STATIC_URL+"154.png"' @tap.stop="popupShow1718963432279=false"></image>
                    </view>
                </view>

                <!---flex布局flex布局结束-->

            </benben-popup>


        </view>
    </page-body>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},
        mixins: [pagingList],

        data() {
            return {
                "popupShow1718963432279": false,
                "minixPagingListsApi": "",
                "pageingListApiMethod": "",
                "allowOnloadGetList": false,
                "detail": {
                    "today_income": "",
                    "all_income": "",
                    "underway_number": "",
                    "month_number": "",
                    "finish_number": "",
                    "all_number": "",
                    "user_money": "",
                    "freeze_money": "",
                    "month_money": ""
                },
                "list": [],
                "dataDetails": {
                    "aid": "",
                    "type": "",
                    "content": "",
                    "create_time": ""
                }
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
            this.getMessageFunc()
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.getpy674ed4a676bbFunc()
            this.geteu36dfee37deefFunc()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
			chakan(item){
				if(item.change_type=='5' || item.change_type=='6'){
					this.$urouter.navigateTo(`/pages/riderOrder/meetOrder/meetOrder?order_sn=${item.order_sn}&type=${item.change_type=='5' ? '1' : ''}&aid=${item.order_id}`);
				}else if(item.change_type=='2'){
					this.$urouter.navigateTo(`/pages/riderMy/expenditur/expenditur?order_sn=${item.order_sn}`);
					
				}
			},
            //骑手端-获取骑手端个人中心数据
            async getpy674ed4a676bbFunc() {
                //请求方法
                //数据验证

                let datadetail = await this.$api.get(global.apiUrls.post6674ed4a676bb, {

                });

                if (datadetail.data.code != 1) {
                    this.$message.info(datadetail.data.msg);
                    return
                }
                let infodetail = datadetail.data;
                this.detail = infodetail.data

            },
            //钱包-余额明细
            geteu36dfee37deefFunc() {
                this.minixPagingListsApi = global.apiUrls.post636dfee37deef;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {
                    // money_type: '1',
                    type: '2',
                    user_role: '2'
                }
                this.listData = [];
                this.list = this.listData;
                this.pagingListToggle();

            },
            //系统文章--获取系统单页内容
            async getMessageFunc() {
                //请求方法
                //数据验证

                let datadataDetails = await this.$api.get(global.apiUrls.post646576063f6b7, {
                    aid: '23'
                });

                if (datadataDetails.data.code != 1) {
                    this.$message.info(datadataDetails.data.msg);
                    return
                }
                let infodataDetails = datadataDetails.data;
                this.dataDetails = infodataDetails.data

            },
            pagingListPostData() {
                return this.pagingListPostDataContent
            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: url(image-path('85.png')) no-repeat #fff;
        background-size: 100% 510rpx;
    }

    .myPay_flex_0 {
        background: url(image-path('85.png')) no-repeat;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .myPay_fd0_0_c1_c0 {
        font-size: 36rpx;
        font-weight: 700;
        color: var(--benbenFontColor3);
        line-height: 50rpx;
    }

    .myPay_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: var(--benbenFontColor3);
    }

    .myPay_fd0_0_c0 {
        width: 120rpx;
    }

    .myPay_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
    }

    .myPay_flex_1 {
        padding: 0rpx 24rpx 0rpx 24rpx;
    }

    .myPay_fd1_0 {
        color: #FFFFFF;
        font-size: 22rpx;
        font-weight: 500;
        margin: 16rpx 0rpx 16rpx auto;
    }

    .myPay_flex_2 {
        padding: 0rpx 24rpx 0rpx 24rpx;
    }

    .myPay_fd2_1_c1_c1 {
        color: var(--benbenFontColor3);
		margin: 0 0 0 12rpx;
    }

    .myPay_fd2_1_c1_c0 {
        color: #FFFFFF;
        font-size: 24rpx;
        font-weight: 500;
    }

    .myPay_fd2_1_c1 {
        margin: 4rpx 0rpx 0rpx 0rpx;
    }

    .myPay_fd2_1 {
        margin: 0rpx 0rpx 0rpx 75rpx;
    }

    .myPay_fd2_0_c1 {
        color: #FFFFFF;
        font-size: 24rpx;
        font-weight: 500;
        margin: 4rpx 0rpx 0rpx 0rpx;
    }

    .myPay_fd2_0_c0_c0 {
        font-size: 32rpx;
    }

    .myPay_fd2_0_c0 {
        font-size: 48rpx;
        font-weight: 700;
        color: #FFFFFF;
    }

    .myPay_fd2_0 {
        margin: 0rpx 75rpx 0rpx 0rpx;
    }

    .myPay_flex_3 {
        padding: 0rpx 24rpx 0rpx 24rpx;
    }

    .myPay_fd3_0_c1_c1 {
        color: #FF8E21;
        font-size: 28rpx;
        font-weight: 500;
    }

    .myPay_fd3_0_c1_c0 {
        width: 32rpx;
        height: 32rpx;
        border-radius: 0rpx 0rpx 0rpx 0rpx;
        margin: 0rpx 10rpx 0rpx 0rpx;
    }

    .myPay_fd3_0_c1 {
        border: 1px solid #FF8E21;
        background: rgba(235, 83, 5, 0.08);
        border-radius: 44rpx 44rpx 44rpx 44rpx;
        width: 366rpx;
        height: 72rpx;
    }

    .myPay_fd3_0_c0_c1 {
        background: rgba(238, 238, 238, 1);
        width: 1rpx;
        height: 86rpx;
        margin: 0rpx 10rpx 0rpx 10rpx;
        transform: scaleX(0.5);
    }

    .myPay_fd3_0_c0_c0_c1 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 500;
    }

    .myPay_fd3_0_c0_c0_c0 {
        color: #666666;
        font-size: 28rpx;
        font-weight: 400;
    }

    .myPay_fd3_0_c0 {
        width: 100%;
        margin: 0rpx 0rpx 40rpx 0rpx;
    }

    .myPay_fd3_0 {
        background: var(--benbenbgColor1);
        background-size: 100% auto;
        border-radius: 16rpx;
        margin: 40rpx 0rpx 0rpx 0rpx;
        padding: 40rpx 0rpx 40rpx 0rpx;
        box-shadow: 0rpx 0rpx 18rpx 1rpx rgba(0, 0, 0, 0.06);
    }

    .myPay_flex_4 {
        padding: 24rpx;
    }

    .myPay_fd4_1_c2_c1_c1 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
        margin: 0rpx 0rpx 0rpx auto;
    }

    .myPay_fd4_1_c2_c1_c0 {
        color: rgba(0, 0, 0, 1);
        font-size: 22rpx;
        font-weight: 500;
        margin: 0rpx 12rpx 0rpx 0rpx;
    }

    .myPay_fd4_1_c2_c1 {
        margin: 0rpx 0rpx 0rpx auto;
    }

    .myPay_fd4_1_c2_c0 {
        color: #999999;
        font-size: 24rpx;
        font-weight: 400;
    }

    .myPay_fd4_1_c2 {
        margin: 24rpx 0rpx 0rpx 0rpx;
    }

    .myPay_fd4_1_c1 {
        color: #777777;
        font-size: 24rpx;
        font-weight: 400;
        margin: 15rpx 0rpx 17rpx 0rpx;
    }

    .myPay_fd4_1_c0_c2_1 {
        color: var(--benbenFontColor1);
        font-size: 28rpx;
        font-weight: 700;
    }

    .myPay_fd4_1_c0_c1 {
        color: #DA372C;
        font-size: 28rpx;
        font-weight: 700;
    }

    .myPay_fd4_1_c0_c0_c0 {
        color: #333333;
        font-size: 28rpx;
        font-weight: 500;
    }

    .myPay_fd4_1_c0_c0 {
        margin: 0rpx 32rpx 0rpx 0rpx;
    }

    .myPay_fd4_1 {
        border-bottom: 1px solid rgba(238, 238, 238, 1);
        padding: 32rpx 0rpx 32rpx 0rpx;
    }

    .myPay_fd4_0_c2 {
        margin: 0rpx 0rpx 0rpx auto;
        color: #666666;
        font-size: 24rpx;
        font-weight: 400;
    }

    .myPay_fd4_0_c1 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 800;
        margin: 0rpx 0rpx 0rpx 16rpx;
    }

    .myPay_fd4_0_c0 {
        background: var(--benbenbgColor0);
        width: 6rpx;
        height: 28rpx;
        background-size: 100% auto;
        border-radius: 3rpx;
    }

    .myPay_flex_5 {
        width: 540rpx;
    }

    .myPay_fd5_1_c0 {
        width: 56rpx;
        height: 56rpx;
        border-radius: 28rpx 28rpx 28rpx 28rpx;
    }

    .myPay_fd5_1 {
        margin: 48rpx 0rpx 0rpx 0rpx;
    }

    ::v-deep .myPay_fd5_0_c1_c0 {
        width: 100%;
    }

    .myPay_fd5_0_c1 {
        touch-action: none;
        height: 30vh;
        width: 476rpx;
    }

    .myPay_fd5_0_c0 {
        color: #333333;
        font-size: 32rpx;
        font-weight: 500;
        line-height: 45rpx;
        text-align: center;
        margin: 0rpx 0rpx 24rpx 0rpx;
    }

    .myPay_fd5_0 {
        background: #FFFFFF;
        border-radius: 24rpx 24rpx 24rpx 24rpx;
        padding: 28rpx 32rpx 41rpx 32rpx;
    }
</style>